package cn.zxcoder.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author zx
 * @since 2023-06-08
 */
@TableName("sys_role_right")
@ApiModel(value = "RoleRight对象", description = "")
public class RoleRight implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("角色id")
    @TableField(value = "role_id")
    private Integer roleId;

    @ApiModelProperty("权限字符串")
    @TableField(value = "rights_ids")
    private String rightsIds;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getroleId() {
        return roleId;
    }

    public void setroleId(Integer roleId) {
        this.roleId = roleId;
    }
    public String getRightsIds() {
        return rightsIds;
    }

    public void setRightsIds(String rightsIds) {
        this.rightsIds = rightsIds;
    }

    @Override
    public String toString() {
        return "RoleRight{" +
            "id=" + id +
            ", roleId=" + roleId +
            ", rightsIds=" + rightsIds +
        "}";
    }
}
